cmake_minimum_required(VERSION 3.10)

project(task-6-PNP)

find_package(OpenCV REQUIRED)

find_package(Eigen3 REQUIRED)

add_library(PNP SHARED src/PNP.cpp)

target_include_directories(PNP PUBLIC include)

target_include_directories(PNP PUBLIC ${OpenCV_INCLUDE_DIRS})

target_include_directories(PNP PUBLIC ${EIGEN3_INCLUDE_DIR})

target_link_libraries(PNP ${OpenCV_LIBS})

add_executable(task6 main.cpp)

target_link_libraries(task6 PNP)